from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time

driver = webdriver.Edge()
driver.maximize_window()
driver.get('https://www.baidu.com/')
driver.find_element(By.XPATH,'//*[@id="s-top-left"]/a[1]').click()
driver.switch_to.window(driver.window_handles[-1])
time.sleep(1)
driver.find_element(By.PARTIAL_LINK_TEXT,'两山').click()
time.sleep(5)